package demo2;

public class Card {
    //花色
    private String suit;
    //数字
    private int rand;

    public Card(String suit, int rand) {
        this.suit = suit;
        this.rand = rand;
    }

    public String getSuit() {
        return suit;
    }

    public void setSuit(String suit) {
        this.suit = suit;
    }

    public int getRand() {
        return rand;
    }

    public void setRand(int rand) {
        this.rand = rand;
    }

    @Override
    public String toString() {
        return "花色：" + suit + ", 数字：" + rand;
    }
}
